
**********************************************************************************************************************************
** title:		The Role of Education on Political Information Processing and Correct Voting : Inequality at the Voting Booth?	**									
** authors:		Silke Goubin, Richard Lau, Dieter Stiers, Marc Hooghe 															**
** data set:	DPTE_Political Behavior																							**
** date:		November 2024	  											  			     									**
**********************************************************************************************************************************
set scheme s1mono
use "DPTE_Political Behavior", clear


***************
*** Table 2 ***
***************
regress PrimaryTotalUniqueOpens zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID
est store t21

regress GeneralTotalUniqueOpens zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID
est store t22

*inparty
regress DemCandsPrimeUnique zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID if PartyRegistration==1
est store t23

regress RepCandsPrimeUnique zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID if PartyRegistration==2
est store t24

*outparty
regress DemCandsPrimeUnique zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID if PartyRegistration==2
est store t25

regress RepCandsPrimeUnique zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID if PartyRegistration==1
est store t26

esttab t21 t22 t23 t24 t25 t26 using "Results_ 2.rtf" , compress nogap b(3) se(3) r2  star(+ 0.10 * 0.05 ** 0.01 *** 0.001)  replace


***************
*** Table 3 ***
***************
regress z_PersonalPrimeUnique zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID 
est store t31 

regress z_PersonalGenUnique zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID
est store t32

regress z_PolicyPrimeUnique zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID
est store t33

regress z_PolicyGenUnique  zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID
est store t34

regress z_HeuristicPrimeUnique zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID
est store t35

regress z_HeuristicGenUnique  zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID
est store t36

esttab t31 t32 t33 t34 t35 t36  using "Results_3.rtf" , compress nogap b(3) se(3) r2 star(+ 0.10 * 0.05 ** 0.01 *** 0.001)  replace


***************
*** Table 4 ***
***************
regress CandPolKnow zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID
est store t41 

regress CandPolKnow zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID zGeneralTotalUniqueOpens
est store t42

regress CandPolKnow zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID zz_PersonalGenUnique zz_PolicyGenUnique zz_HeuristicGenUnique
est store t43

esttab t41 t42 t43 using "Results_4.rtf" , compress nogap b(3) se(3) r2  star(+ 0.10 * 0.05 ** 0.01 *** 0.001)  replace


***************
*** Table 5 ***
***************
logit PrimeCorrVtMean zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID zPrimaryTotalUniqueOpens
est store t51

logit PrimeCorrVtMean zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID zz_PersonalPrimeUnique zz_PolicyPrimeUnique zz_HeuristicPrimeUnique
est store t52

logit GenECorrVtMean zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID zGeneralTotalUniqueOpens
est store t53

logit GenECorrVtMean zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID zz_PersonalGenUnique zz_PolicyGenUnique zz_HeuristicGenUnique
est store t54

logit GenECorrVtMean zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID zCandPolKnow
est store t55


esttab t51 t52 t53 t54 t55 using "Results_5.rtf" , compress nogap b(3) se(3)  pr2  star(+ 0.10 * 0.05 ** 0.01 *** 0.001)  replace


*********************
*** Table 6 and 7 ***
*********************
xi: medeff (regress CandPolKnow EducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID zz_PersonalGenUnique zz_PolicyGenUnique zz_HeuristicGenUnique) ///
(logit GenECorrVtMean CandPolKnow EducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID zz_PersonalGenUnique zz_PolicyGenUnique zz_HeuristicGenUnique) ///
, mediate(CandPolKnow) treat(EducYrs 10 19) 
est store t6

esttab t6 using "Results_6.rtf" , compress nogap b(3) se(3) pr2  star(+ 0.10 * 0.05 ** 0.01 *** 0.001)  replace



******************
*** Appendix B ***
******************
summ PrimeCorrVtMean GenECorrVtMean  GeneralTotalUniqueOpens PrimaryTotalUniqueOpens TotalGenESearchDuration DEMPrimeDuration REPPrimeDuration CandPolKnow
fre PrimeCorrVtMean GenECorrVtMean  GeneralTotalUniqueOpens PrimaryTotalUniqueOpens TotalGenESearchDuration DEMPrimeDuration REPPrimeDuration CandPolKnow

summ z_PersonalPrimeUnique z_HeuristicPrimeUnique z_PolicyPrimeUnique z_PersonalGenUnique z_HeuristicGenUnique z_PolicyGenUnique
fre z_PersonalPrimeUnique z_HeuristicPrimeUnique z_PolicyPrimeUnique z_PersonalGenUnique z_HeuristicGenUnique z_PolicyGenUnique

summarize EducYrs IncomeNew Age Female Black Latino Interest Sophistication PartyID StrngPID
fre EducYrs IncomeNew Age Female Black Latino Interest Sophistication PartyID StrngPID

corr zPrimaryTotalUniqueOpens zGeneralTotalUniqueOpens zz_PersonalPrimeUnique zz_PersonalGenUnique zz_PolicyPrimeUnique zz_PolicyGenUnique zz_HeuristicPrimeUnique zz_HeuristicGenUnique


******************
*** Appendix E ***
******************

* Duration and General Elections
* In-party
regress DEMPrimeDuration zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID if PartyRegistration==1
est store tE1

regress REPPrimeDuration zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID if PartyRegistration==2
est store tE2

* General election
regress TotalGenESearchDuration zEducYrs zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID
est store tE3

esttab tE1 tE2 tE3 using "Results_E.rtf" , compress nogap b(3) se(3) r2 star(+ 0.10 * 0.05 ** 0.01 *** 0.001)  replace


******************
*** Appendix G ***
******************
logit GenECorrVtMean c.EducYrs##c.CandPolKnow zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID
est sto mg1
margins, dydx(CandPolKnow) at(EducYrs=(10 12 13 14 16 19)) post
est sto m2i 

coefplot m2i,  xline(0, lcol(gs0)) level(95 90) ///
coeflabels(1._at = "10 years" 2._at = "12 years" 3._at = "13 years" 4._at = "14 years" 5._at = "16 years" 6._at = "19 years") ///
scale(*1.6) name(basic, replace) xsize(7) byopts(legend(pos(3) size(*0.9)) iscale(*1.4)) ///
xtitle("Marginal effect of candidate knowledge, by level of education")

esttab mg1 using "Results_G.rtf" , compress nogap b(3) se(3) pr2 star(+ 0.10 * 0.05 ** 0.01 *** 0.001)  replace


******************
*** Appendix H ***
******************
fre EducYrs
recode EducYrs (10/15= 0) (16/19 =1), gen(binary_education) 

***************
*** Table 2 ***
***************
regress PrimaryTotalUniqueOpens i.binary_education zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID
est store t21

regress GeneralTotalUniqueOpens i.binary_education zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID
est store t22

*inparty
regress DemCandsPrimeUnique i.binary_education zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID if PartyRegistration==1
est store t23

regress RepCandsPrimeUnique i.binary_education zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID if PartyRegistration==2
est store t24

*outparty
regress DemCandsPrimeUnique i.binary_education zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID if PartyRegistration==2
est store t25

regress RepCandsPrimeUnique i.binary_education zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID if PartyRegistration==1
est store t26

esttab t21 t22 t23 t24 t25 t26 using "Results_2.rtf" , compress nogap b(3) se(3) r2  star(+ 0.10 * 0.05 ** 0.01 *** 0.001)  replace


***************
*** Table 3 ***
***************
regress z_PersonalPrimeUnique i.binary_education zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID 
est store t31 

regress z_PersonalGenUnique i.binary_education zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID
est store t32

regress z_PolicyPrimeUnique i.binary_education zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID
est store t33

regress z_PolicyGenUnique  i.binary_education zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID
est store t34

regress z_HeuristicPrimeUnique i.binary_education zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID
est store t35

regress z_HeuristicGenUnique  i.binary_education zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID
est store t36

esttab t31 t32 t33 t34 t35 t36  using "Results_3.rtf" , compress nogap b(3) se(3) r2 star(+ 0.10 * 0.05 ** 0.01 *** 0.001)  replace


***************
*** Table 4 ***
***************
regress CandPolKnow i.binary_education zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID
est store t41 

regress CandPolKnow i.binary_education zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID zGeneralTotalUniqueOpens
est store t42

regress CandPolKnow i.binary_education zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID  zStrngPID zz_PersonalGenUnique zz_PolicyGenUnique zz_HeuristicGenUnique
est store t43

esttab t41 t42 t43 using "Results_4.rtf" , compress nogap b(3) se(3) r2  star(+ 0.10 * 0.05 ** 0.01 *** 0.001)  replace


***************
*** Table 5 ***
***************
logit PrimeCorrVtMean i.binary_education  zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID zPrimaryTotalUniqueOpens
est store t51

logit PrimeCorrVtMean i.binary_education  zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID zz_PersonalPrimeUnique zz_PolicyPrimeUnique zz_HeuristicPrimeUnique
est store t52

logit GenECorrVtMean i.binary_education  zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID zGeneralTotalUniqueOpens
est store t53

logit GenECorrVtMean i.binary_education  zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID zz_PersonalGenUnique zz_PolicyGenUnique zz_HeuristicGenUnique
est store t54

logit GenECorrVtMean i.binary_education  zIncomeNew zAge i.Female i.Black i.Latino zSophistication i.PartyID zStrngPID zCandPolKnow
est store t55

esttab t51 t52 t53 t54 t55 using "Results_5.rtf" , compress nogap b(3) se(3)  pr2  star(+ 0.10 * 0.05 ** 0.01 *** 0.001)  replace
